#include<stdio.h>
void main()
{
	float a=1,b=2,c=1;

   	while(1/c>=1e-6)
	{
		c=c*(c+1);
		b+=a/c;
	}
	printf("e=%f\n",b);
}
